package com.lh.pro.rpc;

import com.sise.bean.ComputerDTO;
import com.sise.service.ComputerRpcService;
import org.springframework.stereotype.Service;

/**
 * 作者：idea
 * 日期：2018/8/27
 * 描述：
 */
@Service("computerService")
public class ComputerServiceImpl implements ComputerRpcService {
    public void save(ComputerDTO computerDTO) {
        System.out.println("this is save!!");
    }

    public ComputerDTO findOne(ComputerDTO computerDTO) {
        computerDTO.setName("name");
        computerDTO.setId(1001);
        return computerDTO;
    }
}
